<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
    // 如果指定多个then函数，那么对应的回调函数是否都会执行？
    import Promise from "./index.js";
    const p = new Promise((resolve,reject)=>{
        setTimeout(()=>{
            resolve(100);
        },1000)
    });
    p.then(value=>{
        console.log("成功1",value);
    },reason=>{
        console.log("失败1",reason);
    })

    p.then(value=>{
        console.log("成功2",value);
    },reason=>{
        console.log("失败2",reason);
    })


    p.then(value=>{
        console.log("成功3",value);
    },reason=>{
        console.log("失败3",reason);
    })
</script>
</html>